<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>CSS3 自定义字体</title>
		<style>
			@font-face {
				font-family: 'myFont';
				/* 字体链接地址,可以是线上地址也可以本地文件地址 */
				src: url('path_to_your_font_file.wof'), format('path_to_your_font_file.eot');
			}

			body {
				font-family: 'myFont', sans-serif;
				font-weight: normal;
				font-style: normal;
			}
		</style>
	</head>
	<body>
		<h2>Hello World!</h2>
	</body>
</html>
